<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="uiTags" prefix="ui"%>

<script type="text/javascript">
var functionAdd={
	saveFunctionAdd:function(){
		submitForm("functionadd_formtable", "function/saveFunctionAdd", "closeCurrentTab()");
	}
}
</script>
<ui:body>
	<div class="easyui-layout" style="width: 100%;height: 100%;" fit="true">
		<div data-options="region:'north',border:false" style="height: 140px">
			<ui:formtable id="functionadd_formtable" >
				<ui:textinput id="function.parentid" hidden="true" defaultvalue="${parentid}"/>
				<ui:textinput id="function.name" label="功能名称" dataOptions="required:true"/>
				<ui:textinput id="function.url" label="URL" readOnly="${urlDisabled}" />
				<ui:numberinput id="function.sx" precision="0" label="顺序" readonly="${sxDisabled}" dataOptions="required:${!sxDisabled}"/>
				<ui:nextline/>
				<ui:dropdown id="function.gnlx" readOnly="true" code="GNLX" label="功能类型" defaultselect="${gnlx}"></ui:dropdown>
				<ui:textinput id="function.bz" readOnly="${bzDisabled}" label="备注"/>
			</ui:formtable>
		</div>

		<div data-options="region:'south',border:true"
			style="text-align: right;overflow: hidden;">
			<ui:button onclick="functionAdd.saveFunctionAdd()" icon="icon-ok" value="新增"  />
			<ui:button onclick="closeCurrentTab()" icon="icon-ok" value="关闭" />
		</div>
	</div>
</ui:body>
